import request from '@/utils/request'

// 查询操作记录列表
export function listOperation_record(query) {
  return request({
    url: '/scada/operation_record/list',
    method: 'get',
    params: query
  })
}

// 查询操作记录详细
export function getOperation_record(id) {
  return request({
    url: '/scada/operation_record/' + id,
    method: 'get'
  })
}

// 新增操作记录
export function addOperation_record(data) {
  return request({
    url: '/scada/operation_record',
    method: 'post',
    data: data
  })
}

// 修改操作记录
export function updateOperation_record(data) {
  return request({
    url: '/scada/operation_record',
    method: 'put',
    data: data
  })
}

// 删除操作记录
export function delOperation_record(id) {
  return request({
    url: '/scada/operation_record/' + id,
    method: 'delete'
  })
}
